//
//  PacketDispatchDelegate.h
//  TcpTest_Server
//
//  Created by scarlettsun on 12-7-28.
//  Copyright (c) 2012年 tencent. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SockPacket.h"
#import "GCDAsyncSocket.h"
#import "LogInPacketCenter.h"
#import "LogOutPacketCenter.h"
#import "ListenPortPacketCenter.h"
#import "GroupPacketCenter.h"
#import "SystemPacketCenter.h"
#import "PairChatPacketCenter.h"
#import "BuddyListPacketCenter.h"
#import "RegisterPacketCenter.h"
#import "HeartBeatPacketCenter.h"
#import "PacketDispatchDelegate.h"
#import "GroupChatPacketCenter.h"
#import "AddNewFriendPacketCenter.h"

#define SendFallLinePacket @"SendFallLinePacket"

@interface PacketDispatchCenter : NSObject
{
    LogInPacketCenter *logDelegate;
    LogOutPacketCenter *logOutDelegate;
    ListenPortPacketCenter *listenPortDelegate;
    GroupPacketCenter *groupDelegate;
    SystemPacketCenter *sysDelegate;  
    PairChatPacketCenter *chatDelegate;
    BuddyListPacketCenter *buddyListDelegate;
    RegisterPacketCenter *registerDelegate;
    HeartBeatPacketCenter *heartBeatDelegate;
    GroupChatPacketCenter *groupChatDelegate;
    AddNewFriendPacketCenter *addNewFriendDelegate;
}
@property (nonatomic,strong) id<PacketDispatchDelegate> delegate;
-(void) doPacketDispatch:(SockPacket *)packet;
@end
